import { defineComponent as v, reactive as b, watch as k, toRefs as y } from "vue-demi";
import { openBlock as c, createElementBlock as _, createElementVNode as e, toDisplayString as n, createCommentVNode as F, createTextVNode as x, Fragment as u, renderList as h, withDirectives as p, vModelCheckbox as g, pushScopeId as $, popScopeId as N } from "vue";
const M = /-(\w)/g;
function f(t) {
  return t.replace(M, (l, o) => o.toUpperCase());
}
const D = "frog";
function R(t) {
  return t = `${D}-${t}`, [t, f(`-${t}`)];
}
function B(t) {
  return t.install = (l) => {
    const o = t.name, [a, i] = R(o);
    l.component(a, t), l.component(i, t), l.component(o, t), l.component(f(`-${o}`), t);
  }, t;
}
const m = (t) => t != null && t.startsWith("http") || t != null && t.startsWith("data:image") ? t : t ? `data:image/png;base64,${t}` : "";
const C = (t, l) => {
  const o = t.__vccOpts || t;
  for (const [a, i] of l)
    o[a] = i;
  return o;
}, T = [
  { value: 1, label: "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u53CA\u590D\u5370\u4EF6" },
  {
    value: 2,
    label: "\u52B3\u52A8\u5408\u540C\u3001\u8058\u7528\u534F\u8BAE\u6216\u8005\u7ECF\u8425\u5408\u540C\u539F\u4EF6\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u4E0D\u63D0\u4F9B\uFF09"
  },
  { value: 3, label: "\u9053\u8DEF\u8FD0\u8F93\u8BC1\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u9700\u63D0\u4F9B\uFF09" }
], E = [
  { value: 1, label: "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u53CA\u590D\u5370\u4EF6" },
  {
    value: 2,
    label: "\u52B3\u52A8\u5408\u540C\u3001\u8058\u7528\u534F\u8BAE\u6216\u8005\u7ECF\u8425\u5408\u540C\u539F\u4EF6\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u4E0D\u63D0\u4F9B\uFF09"
  },
  { value: 3, label: "\u7EE7\u7EED\u6559\u80B2\u8BB0\u5F55" },
  { value: 4, label: "\u9053\u8DEF\u8FD0\u8F93\u8BC1\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u9700\u63D0\u4F9B\uFF09" }
], I = v({
  name: "registerTable",
  props: {
    childData: {
      type: Object,
      default: () => {
      }
    }
  },
  setup(t, { root: l }) {
    const o = b({
      checked: !1,
      registerForm: {
        name: "",
        cardNo: "",
        gender: "",
        address: "",
        photoBase: "",
        telephone: "",
        vehicleNo: "",
        registerType: "",
        enterpriseName: "",
        complaintPhone: "",
        certificateCode: "",
        registerMaterials: [],
        continueRegisterMaterials: [],
        registerBeginDate: "",
        registerEndDate: ""
      }
    });
    return k(
      () => t.childData,
      (a) => {
        for (let i in o.registerForm)
          i === "gender" ? o.registerForm[i] = a[i] === 1 ? "\u7537" : "\u5973" : i === "photoBase" ? o.registerForm[i] = m(a[i]) : o.registerForm[i] = a[i];
      },
      {
        deep: !0,
        immediate: !0
      }
    ), {
      getImage: m,
      ...y(o),
      registerMaterials: T,
      continueRegisterMaterials: E
    };
  }
}), s = (t) => ($("data-v-5cd67c31"), t = t(), N(), t), j = { class: "register-table" }, w = {
  cellspacing: "0",
  cellpadding: "0"
}, S = /* @__PURE__ */ s(() => /* @__PURE__ */ e("caption", null, [
  /* @__PURE__ */ e("h2", { class: "register-title" }, "\u56DB\u5DDD\u7701\u51FA\u79DF\u8F66\u9A7E\u9A76\u5458\u4ECE\u4E1A\u8D44\u683C\u6CE8\u518C\u767B\u8BB0\u8868")
], -1)), z = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u59D3\u540D", -1)), P = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u6027\u522B", -1)), U = { rowspan: "6" }, V = { class: "upload-img" }, O = ["src"], W = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u4F4F\u5740", -1)), L = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u8054\u7CFB\u7535\u8BDD", -1)), q = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u6CE8\u518C\u670D\u52A1\u5355\u4F4D", -1)), A = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u6295\u8BC9\u7535\u8BDD", -1)), G = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u8EAB\u4EFD\u8BC1\u53F7", -1)), H = { colspan: "3" }, J = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u53F7", -1)), K = { colspan: "3" }, Q = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u8F66\u8F86\u4FE1\u606F", -1)), X = { colspan: "3" }, Y = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u7533\u8BF7\u79CD\u7C7B", -1)), Z = { colspan: "4" }, ee = { class: "materialbox flex justify-center" }, te = ["checked"], se = /* @__PURE__ */ s(() => /* @__PURE__ */ e("label", { for: "radio1" }, "\u6CE8\u518C", -1)), oe = ["checked"], le = /* @__PURE__ */ s(() => /* @__PURE__ */ e("label", { for: "radio2" }, "\u5EF6\u7EED\u6CE8\u518C", -1)), ie = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u6750\u6599\u6E05\u5355", -1)), ne = { colspan: "2" }, re = { class: "materialbox" }, ae = /* @__PURE__ */ s(() => /* @__PURE__ */ e("div", { class: "title" }, "\u6CE8\u518C\u8D44\u6599\u6E05\u5355\uFF1A", -1)), de = { class: "flex justify-center flex-col" }, ce = ["label"], _e = ["id", "checked"], ue = ["for"], he = { colspan: "2" }, pe = { class: "materialbox" }, ge = /* @__PURE__ */ s(() => /* @__PURE__ */ e("div", { class: "title" }, "\u5EF6\u7EED\u6CE8\u518C\u8D44\u6599\u6E05\u5355\uFF1A", -1)), me = { class: "flex justify-center flex-col" }, fe = ["label"], ve = ["id", "checked"], be = ["for"], ke = /* @__PURE__ */ s(() => /* @__PURE__ */ e("tr", null, [
  /* @__PURE__ */ e("td", null, "\u627F\u8BFA"),
  /* @__PURE__ */ e("td", { colspan: "4" }, [
    /* @__PURE__ */ e("div", { class: "promise" }, [
      /* @__PURE__ */ e("div", { class: "content" }, "\u672C\u4EBA\u627F\u8BFA\u4EE5\u4E0A\u6240\u6709\u5185\u5BB9\u771F\u5B9E\u3001\u6709\u6548\uFF0C\u5E76\u627F\u62C5\u7531\u6B64\u4EA7\u751F\u7684\u6CD5\u5F8B\u8D23\u4EFB\u3002"),
      /* @__PURE__ */ e("div", { class: "sign" }, [
        /* @__PURE__ */ e("span", null, "\u672C\u4EBA\u7B7E\u5B57\uFF1A"),
        /* @__PURE__ */ e("span", null, "\u65E5\u671F\uFF1A")
      ])
    ])
  ])
], -1)), ye = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", null, "\u7BA1\u7406\u90E8\u95E8\u610F\u89C1", -1)), Fe = { colspan: "4" }, xe = { class: "suggest" }, $e = /* @__PURE__ */ s(() => /* @__PURE__ */ e("p", { class: "title" }, "\u7ECF\u5BA1\u6838\uFF1A", -1)), Ne = { class: "item" }, Me = /* @__PURE__ */ s(() => /* @__PURE__ */ e("label", { for: "checkaudit" }, "\xA0\u540C\u610F\u6CE8\u518C", -1)), De = { class: "item" }, Re = /* @__PURE__ */ s(() => /* @__PURE__ */ e("label", { for: "checkaudit1" }, "\xA0\u4E0D\u540C\u610F\u6CE8\u518C\uFF0C\u7406\u7531:", -1)), Be = /* @__PURE__ */ s(() => /* @__PURE__ */ e("div", null, [
  /* @__PURE__ */ e("div", {
    class: "textR",
    style: { padding: "10px 50px 0 0" }
  }, "(\u76D6 \u7AE0)"),
  /* @__PURE__ */ e("div", {
    class: "textR",
    style: { padding: "10px 50px 5px 0" }
  }, " \u5E74\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\u6708\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\u65E5 ")
], -1)), Ce = /* @__PURE__ */ s(() => /* @__PURE__ */ e("td", { rowspan: "2" }, "\u8BC1\u4EF6\u6CE8\u518C\u4FE1\u606F", -1)), Te = { colspan: "4" }, Ee = { class: "register-info" }, Ie = { colspan: "4" }, je = { class: "register-info" }, we = /* @__PURE__ */ s(() => /* @__PURE__ */ e("span", null, "\u7ECF\u529E\u4EBA(\u7B7E\u5B57)", -1)), Se = { class: "beginDate" };
function ze(t, l, o, a, i, Ue) {
  return c(), _("div", j, [
    e("table", w, [
      S,
      e("tr", null, [
        z,
        e("td", null, n(t.registerForm.name), 1),
        P,
        e("td", null, n(t.registerForm.gender), 1),
        e("td", U, [
          e("div", V, [
            t.registerForm.photoBase ? (c(), _("img", {
              key: 0,
              src: t.registerForm.photoBase,
              alt: ""
            }, null, 8, O)) : F("v-if", !0)
          ])
        ])
      ]),
      e("tr", null, [
        W,
        e("td", null, n(t.registerForm.address), 1),
        L,
        e("td", null, n(t.registerForm.telephone), 1)
      ]),
      e("tr", null, [
        q,
        e("td", null, n(t.registerForm.enterpriseName), 1),
        A,
        e("td", null, n(t.registerForm.complaintPhone), 1)
      ]),
      e("tr", null, [
        G,
        e("td", H, n(t.registerForm.cardNo), 1)
      ]),
      e("tr", null, [
        J,
        e("td", K, n(t.registerForm.certificateCode), 1)
      ]),
      e("tr", null, [
        Q,
        e("td", X, n(t.registerForm.vehicleNo), 1)
      ]),
      e("tr", null, [
        Y,
        e("td", Z, [
          e("div", ee, [
            e("input", {
              id: "radio1",
              type: "radio",
              name: "radio",
              checked: t.registerForm.registerType === 1
            }, null, 8, te),
            se,
            x("\xA0\xA0\xA0\xA0 "),
            e("input", {
              id: "radio2",
              type: "radio",
              name: "radio",
              checked: t.registerForm.registerType === 2
            }, null, 8, oe),
            le
          ])
        ])
      ]),
      e("tr", null, [
        ie,
        e("td", ne, [
          e("div", re, [
            ae,
            e("div", de, [
              (c(!0), _(u, null, h(t.registerMaterials, (r, d) => (c(), _("div", {
                class: "flex",
                style: { "margin-left": "10px", "align-items": "baseline" },
                key: d,
                label: r.label
              }, [
                e("input", {
                  type: "checkbox",
                  id: `checktype1${d}`,
                  class: "flex flex-start",
                  checked: t.registerForm.registerMaterials && t.registerForm.registerMaterials.includes(r.value)
                }, null, 8, _e),
                e("label", {
                  for: `checktype1${d}`
                }, "\xA0" + n(r.label), 9, ue)
              ], 8, ce))), 128))
            ])
          ])
        ]),
        e("td", he, [
          e("div", pe, [
            ge,
            e("div", me, [
              (c(!0), _(u, null, h(t.continueRegisterMaterials, (r, d) => (c(), _("div", {
                class: "flex",
                style: { "margin-left": "10px", "align-items": "baseline" },
                key: d,
                label: r.label
              }, [
                e("input", {
                  type: "checkbox",
                  id: `checktype2${d}`,
                  class: "flex flex-start",
                  checked: t.registerForm.continueRegisterMaterials && t.registerForm.continueRegisterMaterials.includes(r.value)
                }, null, 8, ve),
                e("label", {
                  for: `checktype2${d}`
                }, "\xA0" + n(r.label), 9, be)
              ], 8, fe))), 128))
            ])
          ])
        ])
      ]),
      ke,
      e("tr", null, [
        ye,
        e("td", Fe, [
          e("div", xe, [
            $e,
            e("div", Ne, [
              p(e("input", {
                type: "checkbox",
                id: "checkaudit",
                class: "flex flex-start",
                "onUpdate:modelValue": l[0] || (l[0] = (r) => t.checked = r)
              }, null, 512), [
                [g, t.checked]
              ]),
              Me
            ]),
            e("div", De, [
              p(e("input", {
                type: "checkbox",
                class: "flex flex-start",
                id: "checkaudit1",
                "onUpdate:modelValue": l[1] || (l[1] = (r) => t.checked = r)
              }, null, 512), [
                [g, t.checked]
              ]),
              Re
            ]),
            Be
          ])
        ])
      ]),
      e("tr", null, [
        Ce,
        e("td", Te, [
          e("div", Ee, "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u6CE8\u518C\u6709\u6548\u671F\uFF1A" + n(t.registerForm.registerEndDate), 1)
        ])
      ]),
      e("tr", null, [
        e("td", Ie, [
          e("div", je, [
            we,
            e("span", Se, "\u65E5\u671F\uFF1A" + n(t.registerForm.registerBeginDate), 1)
          ])
        ])
      ])
    ])
  ]);
}
const Pe = /* @__PURE__ */ C(I, [["render", ze], ["__scopeId", "data-v-5cd67c31"]]), We = B(Pe);
export {
  We as default
};
